package clearn;

/**
 * @AUTHOR LYF
 * @DATE 2022/3/28
 * @VERSION 1.0
 * @DESC
 */
// class Sneeze extends Exception {
//    public Sneeze() {
//        super();
//    }
//}
//class Annoyance extends Exception{
//
//}
//class Annoyance extends Exception{
//    public Annoyance() {
//        super();
//    }
//
//    public Annoyance(String message) {
//        super(message);
//    }
//}
public class Test2 {
    public static void main(String[] args)
            throws Exception {
        try {
            try {
                throw new Sneeze();
            }
            catch ( Annoyance a ) {
                System.out.println("Caught Annoyance");
                throw a;
            }
        }
        catch ( Sneeze s ) {
            System.out.println("Caught Sneeze");
            return ;
        }
        finally {
            System.out.println("Hello World!");
        }
    }
}